package com.coding365.servicec.service.impl;


import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.dubbo.rpc.RpcContext;
import com.coding365.dubbo.api.ServiceApiC;
import org.springframework.stereotype.Component;

@Service
@Component
public class ServiceApiCImpl implements ServiceApiC {
    @Override
    public void sayHelloC() {
        String clientIp =  RpcContext.getContext().getAttachment("clientIp");
        System.out.println("this is service c: clientIp ====> " + clientIp);
    }
}
